<%@page contentType="text/html;charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://smartstruts.org/taglib" prefix="smart"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<link href="../css/style.css" type="text/css" rel="stylesheet">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<body topmargin="10">
		<div id="append_parent"></div>
		<table width="100%" border="0" cellpadding="2" cellspacing="6">
			<tbody>
				<tr>
					<td>
						<table class="guide" width="100%" border="0" cellpadding="0"
							cellspacing="0">
							<tbody>
								<tr>
									<td>
										&nbsp;
									</td>
								</tr>
							</tbody>
						</table>
						<br>

						<table class="tableborder" style="border-collapse: collapse;"
							width="100%" cellpadding="8">

							<tbody>

								<c:forEach items="${requestScope.commentList}" var="comment">
									<tr>
										<td class="altbg1" width="15%">
											<b>${comment.account.name}</b>
											<br>
											${comment.time}
										</td>
										<td class="altbg2">
											<b>${comment.title}</b>
											<br>
											${comment.content}
										</td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
						<br>
						<br>
						<br>
						<form action="addcomment" method="post">
							<table class="tableborder" style="border-collapse: collapse;"
								width="100%" cellpadding="8">
								<tbody>
									<tr class="header">
										<td colspan="2">
											<b><smart:message key="new.message" /> </b>
										</td>
									</tr>
									<tr>
										<td class="altbg1">
											<b><smart:message key="message.title" />：</b>
										</td>
										<td class="altbg2">
											*&nbsp;
											<smart:message key="new.message.title" />
											<span style="color: red;"> </span>
											<br>
											<input size="78" name="title" type="text"
												value="${cf.title }">
										</td>
									</tr>
									<tr>
										<td class="altbg1">
											<b><smart:message key="message.text" />：</b>
										</td>
										<td class="altbg2">
											*&nbsp;
											<smart:message key="new.message.text" />
											<span style="color: red;"> </span>
											<br>
											<textarea rows="10" cols="80" name="content">${cf.content}</textarea>
											<br>
											<input value="<smart:message key="send"/>" type="submit">
										</td>
									</tr>
								</tbody>
							</table>
						</form>
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>
